using System;
using System.Data;
using System.Configuration;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
using System.Collections.Generic;
using au.Swindles.CustomerEnquiryService.ObjectLayer;

namespace au.Swindles.CustomerEnquiryService.AdapterLayer
{
    public static class CustomerAdapter
    {
        public static List<Customer> getCustomerList()
        {
            try
            {
                List<Customer> customerList = new List<Customer>();
                customerList.Add(new Customer("Alan Bond", 123456, 1,"Discharged bankrupt"));
                customerList.Add(new Customer("Eddie Groves", 234567, 2, "Default on personal loan"));
                customerList.Add(new Customer("Ima Investor", 345678, 3,"Unreliable employment"));
                customerList.Add(new Customer("James Packer", 456789, 4,"Swindles already heavily exposed"));
                customerList.Add(new Customer("Warren Buffet", 567890, 5, ""));

                return customerList;
            }
            catch (Exception ex)
            {
                return null;
            }
        }

        public static void updateCustomer(Customer pCustomer)
        {
            try
            {
               
            }
            catch (Exception ex)
            {
                throw ex;
            }
        }
    }
}
